package com.blog.dxxr.blogfront.Service.Impl;

import com.blog.dxxr.blogfront.Mapper.ArticleBrowseMapper;
import com.blog.dxxr.blogfront.Service.ArticleBrowseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleBrowseServiceImpl implements ArticleBrowseService {
    @Autowired
    private ArticleBrowseMapper articleBrowseMapper;


    @Override
    public void updateTotalByArticleId(String articleId) {
        articleBrowseMapper.updateTotalByArticleId(articleId);
    }

    @Override
    public int queryBrowseTotal(String articleId) {
        return articleBrowseMapper.selectBrowseTotalByArticleId(articleId);
    }
}
